home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.beans.PropertyVetoException;
- import javax.swing.AbstractAction;
-
- public class BasicInternalFrameTitlePane$MaximizeAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicInternalFrameTitlePane this$0;
-
- public BasicInternalFrameTitlePane$MaximizeAction(BasicInternalFrameTitlePane var1) {
- super("Maximize");
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- if (this.this$0.frame.isMaximizable()) {
- if (!this.this$0.frame.isMaximum()) {
- try {
- this.this$0.frame.setMaximum(true);
- } catch (PropertyVetoException var3) {
- }
- } else {
- try {
- this.this$0.frame.setMaximum(false);
- if (this.this$0.frame.isIconifiable() && this.this$0.frame.isIcon()) {
- this.this$0.frame.setIcon(false);
- }
- } catch (PropertyVetoException var2) {
- }
- }
- }
-
- }
- }
-